﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IntroducerList.aspx.cs" Inherits="Introducer_IntroducerList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/f_css.css" rel="stylesheet" type="text/css" />
    <link href="../css/listpage.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../js/jquery-1.2.6.pack.js"></script>
    <script language="javascript" src="../js/subMsg.js" type="text/javascript"></script>
    <script language="javascript" src="../js/qmailDataGrid.js" type="text/javascript"></script>
    <script language="javascript" src="../js/common.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        createQMailObj("9", "300px", "ShowIntroducerSimple.aspx");
    </script>

    <script language="javascript" type="text/javascript">
        function openDialog(url, title) {
            if (!title) title = "查看介绍人信息";
            if(window.parent && window.parent.document && window.parent.document.openDialog)
            {
                window.parent.document.openDialog(url, title, callBack, 500, 400);
            }
        }
        function openSearchDlg(url, title) {
            if (!title) title = "查找介绍人 - 请输入查找条件";
            if (window.parent && window.parent.document && window.parent.document.openDialog) {
                window.parent.document.openDialog(url, title, callBack, 500, 300);
            }
        }
        function callBack(type, key, value)
        {
             if(fm.qType.value==1){
             }
             else{
             }
         }
         // Note: rowindex 可能不会代表当前的行号，因为有行添加删除或移动的话则不行
         function onRowStatusChanged(chk, rowIndex) {
             var tr = chk.parentNode.parentNode;
             if (chk.checked) {
                 tr.style.backgroundColor = "#d6e2f6";
             }
             else {
                 tr.style.backgroundColor = "";
             }
         }
</script>
    <style type="text/css">
    #gv th
    {
        border:none;
    }
    #gv td
    {
        border-top:none;
        border-left:none;
        border-right:none;
        border-bottom:solid 1px #EEEEEE;
    }
    .right
    {
        float: right;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="titleText">
        客户介绍人管理 <span style="font-size: 12px; font-weight: normal;">(共20个记录)</span>
    </div>
    <div class="btdiv2">
            <anthem:Button ID="Button1" runat="server" CssClass="input00" Text="刷新" />
            <anthem:Button ID="Button6" runat="server" CssClass="input00" Text="删除" />
            <asp:Button ID="Button9" runat="server" CssClass="input00" Text="添加介绍人"
                OnClientClick="window.location.href='EditIntroducer.aspx?op=add'; return false;" />
            <asp:Button ID="Button10" runat="server" CssClass="input00" Text="查找介绍人"
                OnClientClick="javascript:openSearchDlg('Introducer/SearchIntroducerDlg.aspx', '查找联系人 - 请输入查找条件');return false;" />
        <div class="right">
            <webdiyer:AspNetPager ID="pager" runat="server" CssClass="pager" CustomInfoHTML="%CurrentPageIndex%/%PageCount%页&nbsp;&nbsp;"
                CustomInfoSectionWidth="12%" CustomInfoTextAlign="Right" 
                FirstPageText="首页" LastPageText="末页"
                LayoutType="Table" NextPageText="下一页" NumericButtonCount="6" NumericButtonTextFormatString="[{0}]"
                PageSize="20" PagingButtonSpacing="2px" PrevPageText="上一页" ShowCustomInfoSection="Left"
                SubmitButtonText="转到" onpagechanged="pager_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </div>
    <div class="tableContaner">
        <asp:GridView ID="gv" runat="server" CssClass="table2" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="javascript:checkAll(this);" />
                    </HeaderTemplate>
                    <ItemTemplate>
                    <input type="checkbox" onclick='javascript:onRowStatusChanged(this, <%# Container.DataItemIndex %>);' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="联系人名" />
                <asp:BoundField HeaderText="客户名" />
                <asp:BoundField HeaderText="联系电话" />
                <asp:BoundField HeaderText="手机" />
                <asp:BoundField HeaderText="邮箱" />
                <asp:BoundField HeaderText="地址" />
                <asp:BoundField HeaderText="邮编" />
                <asp:TemplateField HeaderText="操作" ItemStyle-Width="100px">
                    <ItemTemplate>
                        <a href="javascript:void(0)" title="查看详细信息"
                        <a href="javascript:void(0)" onclick="javascript:showDetail(this,12);" title="显示详细信息">详细</a>
                        <a href="EditIntroducer.aspx?op=edit&id=1" title="编辑联系人信息">编辑</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="listhead" />
            <AlternatingRowStyle CssClass="alt" />
        </asp:GridView>
    </div>
    <div class="btdiv2">
            <anthem:Button ID="Button3" runat="server" CssClass="input00" Text="刷新" />
            <anthem:Button ID="Button4" runat="server" CssClass="input00" Text="删除" />
            <anthem:Button ID="Button7" runat="server" CssClass="input00" Text="列设置" />
        <div class="right">
            <webdiyer:AspNetPager ID="pager2" runat="server" CssClass="pager" CustomInfoHTML="%CurrentPageIndex%/%PageCount%页&nbsp;&nbsp;"
                CustomInfoSectionWidth="12%" CustomInfoTextAlign="Right" 
                FirstPageText="首页" LastPageText="末页"
                LayoutType="Table" NextPageText="下一页" NumericButtonCount="6" NumericButtonTextFormatString="[{0}]"
                PageSize="20" PagingButtonSpacing="2px" PrevPageText="上一页" ShowCustomInfoSection="Left"
                SubmitButtonText="转到" onpagechanged="pager2_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </div>
    </form>
</body>
</html>
